package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.pro.WorkflowProcess;
import com.qidianit.mes.pojo.pro.WorkflowProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkflowProductMapper {
    List<WorkflowProduct> selectPage(@Param("workflowId") Long workflowId);

    WorkflowProduct selectById(Long id);

    int insert(WorkflowProduct workflowProduct);

    int updateById(WorkflowProduct workflowProduct);

    int deleteById(@Param("id") Long id);

    int batchDelete(@Param("ids") Long[] ids);

    int countByWorkflowAndProduct(@Param("workflowId") Long workflowId, @Param("productCode") String productCode);
}